#ifndef INDEX_H
#define INDEX_H

#include <QWidget>
#include <QMediaPlayer>
#include <QMediaPlaylist>

namespace Ui {
class index;
}

class index : public QWidget
{
    Q_OBJECT

public:
    explicit index(QWidget *parent = 0);
    ~index();
    void paintEvent(QPaintEvent *p) ;       // 画图函数

private slots:
    void on_exitBtn_clicked();

    void on_startBtnindex_clicked();

    void on_pushButton_3_clicked();

    void on_czsmBtn_clicked();

    void on_aboutBtn_clicked();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

private:
    Ui::index *ui;
    bool		mMoveing;
    QPoint	    mMovePosition;
    bool    isPlay=false;
    QMediaPlayer *player=new QMediaPlayer;
    QMediaPlaylist *playlist = new QMediaPlaylist();
};

#endif // INDEX_H
